home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / tcoop.arc / TCOOP2.ARC / WSOTST2.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-26  |  1.0 KB  |  28 lines

  1. // wsotst2.cpp: This program displays multiple pop-up windows 
  2.  
  3. #include "wsotxscr.h"
  4.  
  5. Wso *Window1, *Window2, *Window3;
  6.  
  7. main()
  8. {
  9.   Setup(MouseOptional,CyanColors);  // Setup the environment 
  10.   FullScrn->Panel->Clear('\xb0',0); // Clear the full screen 
  11.   // Create the first window 
  12.   Window1 = new Wso(0x11, WindowStyle+Stretchable, RedColors);
  13.   Window1->SetSize(50, 15);
  14.   Window1->Open(FullScrn, 2, 2); // Assign the window to the screen 
  15.   Window1->Panel->HzWrtB(0,0, "Window 1");
  16.   // Create the second window 
  17.   Window2 = new Wso(0x11, WindowStyle+Stretchable, BlueColors);
  18.   Window2->SetSize(20, 8);
  19.   Window2->Open(Window1, 2, 3); // Assign the window to window 1 
  20.   Window2->Panel->HzWrtB(0,0, "Window 2");
  21.   Window3 = new Wso(0x11, WindowStyle+Stretchable, InvColors);
  22.   Window3->SetSize(20, 10);
  23.   Window3->Open(FullScrn, 50, 5);  // Assign the window to the screen 
  24.   Window3->Panel->HzWrtB(0,0, "Window 3");
  25.   MainEventLoop(); // The event loop takes over 
  26.   CleanUp();       // Remove all the objects 
  27. }
  28.